package lab02.test22;

public class Test22 {
    public static void main(String[] args) {

        String result = "Hello,World!123";
        char tmp;
        int i;
        for (i = 0; i <= result.length(); i++) {
            tmp = result.charAt(i);
            if (tmp >= 'A' && tmp <= 'Z') {
                //强制类型转换
                System.out.print((char) (tmp + 32));
            } else if (tmp >= '0' && tmp <= '9') {
                System.out.print(0);
            } else if (tmp >= 'a' && tmp <= 'z') {
                System.out.print(tmp);
            } else {
                System.out.print("#");
            }
        }
    }
}

